<template>
  <div class="header" :style="{ height }" :class="{ border }">
    <div :style="{ paddingLeft }">
      <slot name="left">

      </slot>
    </div>

    <div>
      <slot name="center">

      </slot>
    </div>


    <div :style="{ paddingRight }">
      <slot name="right">

      </slot>
    </div>


  </div>
</template>

<script>
export default {
  props: {
    height: {
      type: String,
      // default: '40px'
    },
    paddingLeft: {
      type: String,
      default: '30px'
    },
    paddingRight: {
      type: String,
      default: '30px'
    },
    border:
    {
      type: Boolean,
      default: false
    }
  },
  data() {
    return {

    }
  },
}
</script>

<style lang="scss" scoped>
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
}

.border {
  border-bottom: 1px solid rgb(216, 216, 216);
  box-shadow: 0 1px 3px 1px rgb(222, 222, 222);
}
</style>